<fieldset class="form-fieldset">
			<legend>Benutzer anzeigen</legend>
			<p><a href="anlegen">Neuer Benutzer...</a></p>
			<br>
			<table>
			<tr>
						<th>Nr</th>
						<th>Name</th>
						<th>Vorname</th>
						<th>Status</th>
						<th></th>
						<th></th>
					</tr>
			<?php
			$rowCssIdx = 0;
			foreach ($this->data as $index => $row){
				$nr = $row->getNr();
				$name = $row->getName();
				$vorname = $row->getVorname();
				$status = $row->getStatus();
				$cssclass = $rowCssIdx++ % 2 ? 'even' : 'odd';
				print <<<HTML
				<tr  class="{$cssclass}">
					<td>{$nr}</td>
					<td>{$name}</td>
					<td>{$vorname}</td>
					<td>{$status}</td>
					<td id="weiterleitung"><a href="/PaRe/public/benutzer/aendern?aendern={$nr}">Ändern</a></td>
					<td id="weiterleitung"><a href="/PaRe/public/benutzer/loeschen?loeschen={$nr}">Löschen</a></td>
				</tr>
HTML;
				
			}
			
			 ?>
			 </table>
			
</fieldset>










<!--
<div id="view-content">
<fieldset class="form-fieldset">
		<legend>Benutzer Übersicht</legend>
			<div class="formularcontainer">
<table border="0">
	<tr>
		<th>Nummer</th>
		<th>Password</th>
		<th>Name</th>
		<th>Vorname</th>
		<th>Status</th>
	</tr>
	
<?php
	$dbTable = new Application_Model_DbTable_Benutzer();
	$rowCssIdx = 0;
	foreach ($dbTable->fetchAll() as $row): ?>
	<tr class="<?php echo $rowCssIdx++ % 2 ? 'even' : 'odd'; ?>">
		<td><?php echo ($row->nr); ?></td>
		<td><?php echo ($row->passwort); ?></td>
		<td><?php echo ($row->name); ?></td>
		<td><?php echo ($row->vorname); ?></td>
		<td><?php echo ($row->status); ?></td>
	</tr>
	<?php endforeach ?>
</table>
	</div>
	</fieldset>
</div>
-->
<!--
<br /><br />
<div id="view-content">
	<p>View script for controller <b>Benutzer</b> and script/action name <b>uebersicht</b></p>
</div>
*/

/*
<?php
//0815 lösung für die ausgabe der uebersicht
$dbTable = new Application_Model_DbTable_Benutzer();

foreach($dbTable->fetchAll() as $row){
 
print "Nummer: {$row['nr']} Passwort: {$row['passwort']} Name: {$row['name']} Vorname: {$row['vorname']} 
		Status: {$row['status']} <br/>\n";

}
?>

<table border="0">
	<tr>
		<th>Nummer</th>
		<th>Password</th>
		<th>Name</th>
		<th>Vorname</th>
		<th>Status</th>
	</tr>

	<?php
	$rowCssIdx = 0;
	foreach ($this->entries as $entry): ?>
	<tr class="<?php echo $rowCssIdx++ % 2 ? 'even' : 'odd'; ?>">
		<td><?php echo ($entry->nr); ?></td>
		<td><?php echo ($entry->passwort); ?></td>
		<td><?php echo ($entry->name); ?></td>
		<td><?php echo ($entry->vorname); ?></td>
		<td><?php echo ($entry->status); ?></td>
	</tr>
	<?php endforeach ?>
</table>
</div>
*/
-->